<%@ page language="java" contentType="text/html; charset=utf-8 " import="domain.User,java.util.*"
pageEncoding="utf-8"%>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta charset="utf-8" />
		<meta charset="utf-8">
	<title>添加用户</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="../../css/public.css">
	<link rel="stylesheet" href="use.css" media="all" />
</head>
<body class="childrenBody">
<form action="../../../AddUser" method="post" class="layui-form" style="width:80%;">
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">登录名</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input userName" lay-verify="required" name="username" id="username" placeholder="请输入登录名">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">名称</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input userName" lay-verify="required" name="name" id="name" placeholder="请输入名称">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">密码</label>
		<div class="layui-input-block">
			<input type="password" class="layui-input password" lay-verify="password" name="password" id="password" placeholder="请输入密码">
		</div>
	</div>
	
	
	<div class="layui-form-item layui-row layui-col-xs12">
	<% if(request.getParameter("msg")!=null){
    		int msg = Integer.parseInt(request.getParameter("msg"));
            		    if(msg==1){
            		     %>
            		    <div style="color:red">添加成功</div>
            		 <%   }if(msg==0){ %>
            		 <div style="color:red">添加失败</div>
            		 <% }} %>
		<div class="layui-input-block">
			<button class="layui-btn " lay-submit="" lay-filter="addUser">立即添加</button>
			<button type="reset" class="layui-btn  layui-btn-primary" onclick="history.go(-1)">取消</button>
		</div>
	</div>
</form>
<script type="text/javascript" src="../../layui/layui.js"></script>
<script type="text/javascript" src="userAdd.js"></script>
</body>
</html>